﻿using UnityEngine;
using System.Collections;

public class PlayTestScene : MonoBehaviour {

    private CharacterMovement _CharacterMovement;
    public Character _TestCharacter;

	// Use this for initialization
	void Start () {
        _CharacterMovement = new CharacterMovement();
        _CharacterMovement.AddDownMove(_TestCharacter._collisionFloor);
	}
	
	// Update is called once per frame
	void Update () {
        _CharacterMovement.UpdateDownMove(Time.deltaTime);

        if(Input.GetKey(KeyCode.A))
            _CharacterMovement.HorizonMove(_TestCharacter, MoveDirection.left, Time.deltaTime);
        else if (Input.GetKey(KeyCode.D))
            _CharacterMovement.HorizonMove(_TestCharacter, MoveDirection.right, Time.deltaTime);

        
	}
}
